var inital_val =" Please type in ...";

$(function(){
	$("input[type=text]").click(function(){if($(this).val() ==inital_val)  $(this).val("");}).blur(function(){if($(this).val() =="")  $(this).val(inital_val);})
	$("input[type=text]").hover(function(){$(this).attr("class" ,"focus_border");})
	$("input[type=text]").mouseout(function(){$(this).attr("class" ,"inital_border");})
	
	$("input[type=submit]").click(function(){$(location).attr("href" ,"https://www.baidu.com/s?wd="+$("input[type=text]").val());})

	$(document).on("click" ,"#bottom_header div" ,function(){$("#bottom_header div").css("border-bottom-color" ,"#101010").children().attr("class" ,"inital_font").attr("target" ,"");$(this).css("border-bottom-color" ,"#FF9900").children().attr("class" ,"focus_font").attr("target" ,"_frame");});

	$("#top_header>ul>li").attr("style" ,"cursor:hand");
	// 切换语言
	$("#lang").change(function(){var lang =$(this).find("option:selected").val(); if(lang =="cn") $(".en").css("display" ,"none"); else $(".cn").css("display" ,"none"); $("."+lang).css("display" ,"block"); });
});

